<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>提示信息-见微</title>
    <link href="__PUBLIC__/css/login.css" rel="stylesheet">
    <style>
        *{padding:0;margin:0;}
        body{background:#fff;font-family:微软雅黑;}
        b{font-weight:normal;}
        .system-message{text-align:center;padding-top: 100px;font-size: 22px;}
        .success,.error{font-size:34px;color:#ed4c54;padding:36px 0 30px;font-weight: bold}
        .jump a{color:#5d86e2;text-decoration:underline;padding:0 12px;font-weight: bold}
    </style>
</head>
<body>
<div class="system-message">
<?php if(isset($message)) {?>
<div class="img"><img src="__PUBLIC__/img/success.jpg" alt=""></div>
<p class="success"><?php echo($message); ?></p>
<?php }else{?>
<div class="img"><img src="__PUBLIC__/img/error.jpg" alt=""></div>
<p class="error"><?php echo($error); ?></p>
<?php }?>
<p class="jump">
页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b>
</p>
</div>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
    var time = --wait.innerHTML;
    if(time <= 0) {
        location.href = href;
        clearInterval(interval);
    };
}, 1000);
})();
</script>
</body>
</html>